package com.king.adapter;
//客户端 电脑 连接网线上网 插不上网线
public class Computer {
//电脑需要连接网线上网
    public void net(NetToUSB adapter){
        //上网的具体实现
        adapter.handleRequest();
    }

    public static void main(String[] args) {
        //电脑
        Computer computer = new Computer();
        //网线
        Net net = new Net();
        //适配器
        Adapter2 adapter = new Adapter2(net);

        computer.net(adapter);

    }
}
